package com.dao;

import android.widget.Toast;
import com.activity.MainActivity;
import com.enums.JokeName;

public class Joke1 extends Joke {

	public Joke1() {
		super();
		joke_name = JokeName.JOKE1;
		tasks.add(new Task(1) { // task1
					@Override
					protected void Start() {
						Joke1Task1();
					}
				});
		tasks.add(new Task(2) { // task2
					@Override
					protected void Start() {
						Joke1Task2();
					}
				});
		tasks.add(new Task(3) { // task3
					@Override
					protected void Start() {
						Joke1Task3();
					}
				});
		itrerator = tasks.iterator();

	}

	private void Joke1Task1() {
		Toast.makeText(MainActivity.getmContext(), "1.1", Toast.LENGTH_SHORT)
				.show();
	}

	private void Joke1Task2() {
		Toast.makeText(MainActivity.getmContext(), "1.2", Toast.LENGTH_SHORT)
				.show();
	}

	private void Joke1Task3() {
		Toast.makeText(MainActivity.getmContext(), "1.3", Toast.LENGTH_SHORT)
				.show();
	}

}
